#ifndef QCOLORITEM_H
#define QCOLORITEM_H

#include <QGraphicsItem>
#include <QColor>

class QColorItem : public QGraphicsItem
{
public:
    explicit QColorItem(QGraphicsItem *parent = nullptr);
    virtual QRectF boundingRect() const override;
    virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr) override;

protected:
    virtual void mousePressEvent(QGraphicsSceneMouseEvent *event) override;
    virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) override;
    virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override;

private:
    QColor m_Color;

signals:
};

#endif // QCOLORITEM_H
